

<div class="tour-list" style="margin-top:15%;">
    <ul>
        <?php if (is_array($output['infos']) && $output['infos']): ?>
        <?php foreach ($output['infos'] as $info): ?>
        <li class="info">
            <label>
                <span class="iconfont icon-dagou"></span>
                <input type="checkbox" class="hide" />
            </label>
            <div class="tour-info">
                <p><a class="name"><?php echo $info['mb_name']; ?></a>&nbsp;&nbsp;&nbsp;<span class="phone"><?php echo $info['mb_phone']; ?></span></p>
                <span>身份证：&nbsp;&nbsp;<span class="idcard"><?php echo $info['mb_idcard']; ?></span></span>
            </div>
            <div class="right-btn">
                <a  class="iconfont icon-bi" onclick="openEdit(<?php echo $info['id']; ?>);"></a>
<!--                <a href="javascript:;" class="iconfont icon-lajitong"></a>-->
            </div>
        </li>
        <?php endforeach; ?>
        <?php else: ?>
        <li style="text-align: center;line-height: 5em;">没有可用信息</li>
        <?php endif; ?>
    </ul>
</div>
<div class="btn-div">
    <a  class="btn" id="back">确定</a>
</div>
<div id="edit" style="display: none;position: fixed;top: 0;left: 0;width: 100%;height: 100%;background-color:#fff;"></div>

<script>
    $(function () {
        $('#back').click(function () {
            closeSel();
            var tourinfo = $('.icon-check-outline').parent().next();
            if (tourinfo.length !== 0) {
                var order = $('#order');
                order.find('input[name="name"]').val(tourinfo.find('.name').text());
                order.find('input[name="phone"]').val(tourinfo.find('.phone').text());
                order.find('input[name="idcard"]').val(tourinfo.find('.idcard').text());
            }
        });
        $('.info').click(function () {
            _this = $(this);
            _this.find('span.iconfont').removeClass('icon-dagou').addClass('icon-check-outline');
            _this.siblings().find('span.iconfont').removeClass('icon-check-outline').addClass('icon-dagou');
        });
    });
</script>